import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-10-29
 * Time: 20:27
 */
public class Test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int a = in.nextInt();
        int b = in.nextInt();
        int aT = a;
        int bT = b;
        int q = 0;
        int r = 0;
        do {
            q = aT / bT;
            r = aT - q * bT;
            if(r != 0) {
                aT = bT;
                bT = r;
            }

        }while(r != 0);
        //a和b的最大公因数为bT
        int LCM = (a*b)/bT;
        System.out.println(LCM);
    }
}
